package com.lzq.online_learning_system.controller;


import com.lzq.online_learning_system.model.Sysuser;
import com.lzq.online_learning_system.service.impl.SysuserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lzq
 * @since 2019-10-22
 */
@Controller
@RequestMapping("/sysuser")
public class SysuserController {
  @Autowired
    SysuserServiceImpl sysuserService;

     @GetMapping("/findAll")
    public  String sysusers(){
      List<Sysuser>   sysusers=sysuserService.findAll();
         return "findAll";
     }


}

